Difference between revisions of "Template:Ride location breadcrumb"

From World Naked Bike Ride
Jump to: navigation, search
(We can't prevent the page title to be translated by Google. We do prevent Google translating the new optional parameter for the location name in local languages, shown before 'Google this ride'. We prevent translating 'Google this ride' (often sloppy.)
(hide "Home >" for printer)
 
(22 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country}}}]] > {{PAGENAME}} <span class="notranslate" translate="no">{{{2|}}} <span class="noprint" style="font-size:0.75em;">- [http://www.google.com/search?q=%22{{PAGENAMEE}}%22+%2B%22Naked+Bike+Ride%22 Google this ride!]</span></span><noinclude><!--+%2B%22{{{Country}}}%22
+
<span style="font-size:86%"><span class="noprint">[[Home]] > </span>[[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country|Missing 'Country' parameter}}}]] > {{PAGENAME}}&#8202;<span class="notranslate" translate="no" style="font-style:italic;">{{{1|{{{2|}}}}}}</span></span> <span class="noprint notranslate" translate="no" style="font-size:0.75em;">&bull;&nbsp;&nbsp;[http://www.google.com/search?q={{urlencode:{{PAGENAME}}}}+%2D%22biosphere%22+%2D%22cyclonus%22+%2D%22cyclone%22+%2D%22cyclones%22+%2D%22cyclonen%22+%2D%22ciclones%22+%28+%22Naked+Bike+Ride%22+OR+%22WNBR%22+OR+%28+%22pedalpalooza%22+%28+%22naked%22+OR+%22nude%22+OR+nudist+%29+%29+OR+%22pedalada+pelada%22+OR+%22peladada%22+OR+%22Ciclistas+Nus%22+OR+cyclonudista+OR+ciclonudista+OR+cyclonudist+OR+cyclo%2Dnudist+OR+cyclonue+OR+cyclo%2Dnue+OR+ciclonudist+%29 Google this ride!]</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 compulsory main 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:
  
USAGE 1: {{Template:Ride location breadcrumb|Country=EnterCountryHere}}
+
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):
USAGE 2: {{Template:Ride location breadcrumb|Country=EnterCountryHere|EnterRideLocationNonEnglishName(s)Here}}
+
*USAGE 1: <span class="notranslate" translate="no" lang="en"><nowiki>{{Ride location breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
In case this RideLocationNonEnglishName(s) contains (markup with) an '=', one must apply USAGE 2BIS:
+
Or, if present in the <span class="notranslate" translate="no" lang="en">List of rides</span>, also the aforementioned suffix must be passed behind an extra '|':
USAGE 2BIS: {{Template:Ride location breadcrumb|Country=EnterCountryHere|2=EnterRideLocationNonEnglishName(s)Here}}
+
*USAGE 2: <span class="notranslate" translate="no" lang="en"><nowiki>{{Ride location breadcrumb|Country=</nowiki></span>''Country name''<span class="notranslate" translate="no" lang="en">|</span>''Ride location suffix''<span class="notranslate" translate="no" lang="en"><nowiki>}}</nowiki></span>
 
+
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;</span>''suffix''<span class="notranslate" translate="no" lang="en">&lt;/span&gt;</span><br />one must apply USAGE 2BIS:
-->[[Category:Templates|{{PAGENAME}}]]</noinclude>
+
*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 or a country 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 (calling page name) into <span class="notranslate" translate="no" lang="en">Category:</span>''Country name'' (passed parameter) and into <span class="notranslate" translate="no" lang="en">[[:Category:Ride locations]] — <span class="notranslate" translate="no">[[Help:Ride location categories|<span class="translate" translate="yes">More about ride location categories</span>]]</span>.</span></p>
 +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 14:24, 13 June 2023

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 compulsory main 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 or a country page).
There it shows a proper 'breadcrumb trail' and ensures putting that ride location (calling page name) into Category:Country name (passed parameter) and into Category:Ride locationsMore about ride location categories.