Difference between revisions of "Template:Country breadcrumb"

From World Naked Bike Ride
Jump to: navigation, search
m (See whether Google Translate gets close...)
m (Also automate categorization into one that is named exactly as the country)
Line 1: Line 1:
[[Home]] > [[List of rides]] [[List of rides#{{PAGENAME}}|>]] {{PAGENAME}}&#8202;&#8202;<span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|}}}</span> <span class="noprint" style="font-size:0.75em;">&bull;&nbsp;&nbsp;[http://www.google.com/search?q=%22{{urlencode:{{PAGENAME}}}}%22+%28%22Naked+Bike+Ride%22+OR+%22WNBR%22%29 Google this ride!]</span></span><includeonly>[[Category:Countries|{{PAGENAME}}]]</includeonly><noinclude><hr>{{Google translation link}}<span style="display:inline-block;font-size:88%;font-weight:700;margin-bottom:.75em;"><span style="font-variant:small-caps;letter-spacing:.3ex;padding:.18em 1ex .15em 1ex;color:gold;background-color:gray;">User manual</span><span style="padding:.18em .6ex .15em .8ex;background-color:gold;">To put the ''English instructions'' in another language, click its 2-character code in the above series.</span></span><br />In each country page, always at top of the text, use one of these <nowiki>{{...}}</nowiki> tags:
+
[[Home]] > [[List of rides]] [[List of rides#{{PAGENAME}}|>]] {{PAGENAME}}&#8202;&#8202;<span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|}}}</span> <span class="noprint" style="font-size:0.75em;">&bull;&nbsp;&nbsp;[http://www.google.com/search?q=%22{{urlencode:{{PAGENAME}}}}%22+%28%22Naked+Bike+Ride%22+OR+%22WNBR%22%29 Google this ride!]</span></span><includeonly>[[Category:{{PAGENAME}}]][[Category:Countries|{{PAGENAME}}]]</includeonly><noinclude><hr>{{Google translation link}}<span style="display:inline-block;font-size:88%;font-weight:700;margin-bottom:.75em;"><span style="font-variant:small-caps;letter-spacing:.3ex;padding:.18em 1ex .15em 1ex;color:gold;background-color:gray;">User manual</span><span style="padding:.18em .6ex .15em .8ex;background-color:gold;">To put the ''English instructions'' in another language, click its 2-character code in the above series.</span></span><br />In each country page, always at top of the text, use one of these <nowiki>{{...}}</nowiki> tags:
 
*USAGE 1: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country breadcrumb}}</nowiki></span>
 
*USAGE 1: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country breadcrumb}}</nowiki></span>
 
But in case underneath the country title in the <span class="notranslate" translate="no" lang="en">[[List of rides]]</span>, its name appears in other language(s),<br >that line exactly as you see it there must be passed behind a '|' as follows:  
 
But in case underneath the country title in the <span class="notranslate" translate="no" lang="en">[[List of rides]]</span>, its name appears in other language(s),<br >that line exactly as you see it there must be passed behind a '|' as follows:  
Line 5: Line 5:
 
In case this translation(s) line receives your markup with an '&#61;' in it,<br />e.g. <span class="notranslate" translate="no" lang="en">&#40;&lt;span title<span style="color:#C99;">&#61;</span>&#34;...&#34; class<span style="color:#C99;">&#61;</span>&#34;...&#34; style<span style="color:#C99;">&#61;</span>&#34;...&#34; lang<span style="color:#C99;">&#61;</span>&#34;...&#34;&gt;</span><span style="font-style:italic;">translation(s)</span><span class="notranslate" translate="no" lang="en">&lt;&#47;span&gt;&#41;</span><br />one must apply USAGE 2BIS:
 
In case this translation(s) line receives your markup with an '&#61;' in it,<br />e.g. <span class="notranslate" translate="no" lang="en">&#40;&lt;span title<span style="color:#C99;">&#61;</span>&#34;...&#34; class<span style="color:#C99;">&#61;</span>&#34;...&#34; style<span style="color:#C99;">&#61;</span>&#34;...&#34; lang<span style="color:#C99;">&#61;</span>&#34;...&#34;&gt;</span><span style="font-style:italic;">translation(s)</span><span class="notranslate" translate="no" lang="en">&lt;&#47;span&gt;&#41;</span><br />one must apply USAGE 2BIS:
 
*USAGE 2BIS: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country breadcrumb|1&#61;</nowiki></span><span style="font-style:italic;">Translation(s) line</span><span class="notranslate" translate="no"><nowiki>}}</nowiki></span>
 
*USAGE 2BIS: <span class="notranslate" translate="no" lang="en"><nowiki>{{Country breadcrumb|1&#61;</nowiki></span><span style="font-style:italic;">Translation(s) line</span><span class="notranslate" translate="no"><nowiki>}}</nowiki></span>
<p style="border:4px solid gold;padding:.3em 1ex .3em 1ex;font-weight:700;">This template must be called ''only'' from correctly named country pages (not from e.g. any sub-pages or ride location pages).<br />There it shows a proper <span class="notranslate" translate="no" lang="en">[[wikipedia:breadcrumb navigation|'breadcrumb trail']]</span> and ensures putting that country (the calling page name) into <span class="notranslate" translate="no" lang="en">[[:Category:Countries]]</span>.</p>[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
<p style="border:4px solid gold;padding:.3em 1ex .3em 1ex;font-weight:700;">This template must be called ''only'' from correctly named country pages (not from e.g. any sub-pages or ride location pages).<br />There it shows a proper <span class="notranslate" translate="no" lang="en">[[wikipedia:breadcrumb navigation|'breadcrumb trail']]</span> and ensures putting that country (the calling page name) into a category by that very name and into <span class="notranslate" translate="no" lang="en">[[:Category:Countries]]</span>.</p>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 06:49, 29 April 2020

Home > List of rides > Country breadcrumb   •  Google this ride!


Google translation: CZ / DE / EL / EN / ES / FR / IT / JA / KO / NL / PT / RU / ZH / ZT User manualTo put the English instructions in another language, click its 2-character code in the above series.
In each country page, always at top of the text, use one of these {{...}} tags:

  • USAGE 1: {{Country breadcrumb}}

But in case underneath the country title in the List of rides, its name appears in other language(s),
that line exactly as you see it there must be passed behind a '|' as follows:

  • USAGE 2: {{Country breadcrumb|Translation(s) line}}

In case this translation(s) line receives your markup with an '=' in it,
e.g. (<span title="..." class="..." style="..." lang="...">translation(s)</span>)
one must apply USAGE 2BIS:

  • USAGE 2BIS: {{Country breadcrumb|1=Translation(s) line}}

This template must be called only from correctly named country pages (not from e.g. any sub-pages or ride location pages).
There it shows a proper 'breadcrumb trail' and ensures putting that country (the calling page name) into a category by that very name and into Category:Countries.