Difference between revisions of "Template:Ride location breadcrumb"

From World Naked Bike Ride
Jump to: navigation, search
(User manual with translation support. Also template's include modification: prevent translation of the breadcrumb.)
m (fix against too unpredictable translation of 'breadcrumb trail')
Line 1: Line 1:
<span class="notranslate" translate="no" lang="en">[[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country|Missing 'Country' parameter}}}]] > {{PAGENAME}}&#8202;&#8202;<span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|{{{2|}}}}}}</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></span><includeonly>[[Category:{{{Country|Ride locations with missing 'Country' parameter}}}]][[Category:Ride locations|{{PAGENAME}}]]</includeonly><noinclude><hr>What you see here above, is the mere result of calling this template ''without'' the main compulsory parameter.{{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 ride location page, always at top of the text, use one of these <nowiki>{{...}}</nowiki> tags, in which a name must be passed:
+
<span class="notranslate" translate="no" lang="en">[[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country|Missing 'Country' parameter}}}]] > {{PAGENAME}}&#8202;&#8202;<span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|{{{2|}}}}}}</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></span><includeonly>[[Category:{{{Country|Ride locations with missing 'Country' parameter}}}]][[Category:Ride locations|{{PAGENAME}}]]</includeonly><noinclude><hr>What you see here above, is the mere result of calling this template ''without'' the main compulsory parameter.{{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 ride location page, always at top of the text, use one of these <nowiki>{{...}}</nowiki> tags, in which a name must be passed:
  
 
It must be spelled exactly as it occurs as the country title in the <span class="notranslate" translate="no" lang="en">[[List of rides]]</span>, also the ride location suffix [the area, and/or the ride location name in other language(s)] if such occurs there (immediately behind the ride location name):
 
It must be spelled exactly as it occurs as the country title in the <span class="notranslate" translate="no" lang="en">[[List of rides]]</span>, also the ride location suffix [the area, and/or the ride location name in other language(s)] if such occurs there (immediately behind the ride location name):
Line 7: Line 7:
 
In case this ride location suffix receives your markup with an '=' in it,<br />e.g. <span class="notranslate" translate="no" lang="en">&lt;span title<span style="color:#C99;">=</span>"..." class<span style="color:#C99;">=</span>"..." style<span style="color:#C99;">=</span>"..." lang<span style="color:#C99;">=</span>"..."&gt;''suffix''&lt;/span&gt;</span><br />one must apply USAGE 2BIS:
 
In case this ride location suffix receives your markup with an '=' in it,<br />e.g. <span class="notranslate" translate="no" lang="en">&lt;span title<span style="color:#C99;">=</span>"..." class<span style="color:#C99;">=</span>"..." style<span style="color:#C99;">=</span>"..." lang<span style="color:#C99;">=</span>"..."&gt;''suffix''&lt;/span&gt;</span><br />one must apply USAGE 2BIS:
 
*USAGE 2BIS: <span class="notranslate" translate="no" lang="en"><nowiki>{{Ride location breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en">|1=</span>''Ride location suffix''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
 
*USAGE 2BIS: <span class="notranslate" translate="no" lang="en"><nowiki>{{Ride location breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en">|1=</span>''Ride location suffix''<span class="notranslate" translate="no" lang="en"><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 ride location pages (not from e.g. any sub-page).<br />There it shows a proper [[wikipedia:breadcrumb navigation|breadcrumb trail]] and ensures putting that ride location into Category:''Country name'' (passed parameter) and into [[:Category:Ride locations]] (calling page name).</p>
+
<p style="border:4px solid gold;padding:.3em 1ex .3em 1ex;font-weight:700;">This template must be called ''only'' from correctly named ride location pages (not from e.g. any sub-page).<br />There it shows a proper <span class="notranslate" translate="no" lang="en">[[wikipedia:breadcrumb navigation|'breadcrumb trail']]</span> and ensures putting that ride location into Category:''Country name'' (passed parameter) and into [[:Category:Ride locations]] (calling page name).</p>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 09:22, 28 April 2020

Home > List of rides [[List of rides#{{{Country}}}|>]] Missing 'Country' parameter > Ride location breadcrumb   •  Google this ride!


What you see here above, is the mere result of calling this template without the main compulsory parameter.

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 ride location page, always at top of the text, use one of these {{...}} tags, in which a name must be passed:

It must be spelled exactly as it occurs as the country title in the List of rides, also the ride location suffix [the area, and/or the ride location name in other language(s)] if such occurs there (immediately behind the ride location name):

  • USAGE 1: {{Ride location breadcrumb|Country=Country name}}

Or, if present in the List of rides, also the aforementioned suffix must be passed behind an extra '|':

  • USAGE 2: {{Ride location breadcrumb|Country=Country name|Ride location suffix}}

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

  • USAGE 2BIS: {{Ride location breadcrumb|Country=Country name|1=Ride location suffix}}

This template must be called only from correctly named ride location pages (not from e.g. any sub-page).
There it shows a proper 'breadcrumb trail' and ensures putting that ride location into Category:Country name (passed parameter) and into Category:Ride locations (calling page name).