Difference between revisions of "Template:Ride location breadcrumb"
m (Fix copy/paste error in the shown 'usage 2bis' syntax.) |
(User manual with translation support. Also template's include modification: prevent translation of the breadcrumb.) |
||
Line 1: | Line 1: | ||
− | [[Home]] > [[List of rides]] [[List of rides#{{{Country}}}|>]] [[{{{Country|Missing 'Country' parameter}}}]] > {{PAGENAME}}  <span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|{{{2|}}}}}}</span> <span class="noprint" style="font-size:0.75em;">• [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:{{{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.<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}}  <span class="notranslate" translate="no"><span style="font-style:italic;">{{{1|{{{2|}}}}}}</span> <span class="noprint" style="font-size:0.75em;">• [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 [[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): | + | 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 1: <nowiki>{{Ride location breadcrumb|Country=</nowiki>''Country name''<nowiki>}}</nowiki> | + | *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> |
− | Or, if present in the List of rides, also the aforementioned suffix must be passed behind an extra '|': | + | 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 2: <nowiki>{{Ride location breadcrumb|Country=</nowiki>''Country name''|''Ride location suffix''<nowiki>}}</nowiki> | + | *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 title<span style="color:#C99;">=</span>"..." class<span style="color:#C99;">=</span>"..." style<span style="color:#C99;">=</span>"..." lang<span style="color:#C99;">=</span>"...">''suffix''</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"><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>"...">''suffix''</span></span><br />one must apply USAGE 2BIS: |
− | *USAGE 2BIS: <nowiki>{{Ride location breadcrumb|Country=</nowiki>''Country name''|1=''Ride location suffix''<nowiki>}}</nowiki>[[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).<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> | ||
+ | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 09:13, 28 April 2020
Home > List of rides [[List of rides#{{{Country}}}|>]] Missing 'Country' parameter > Ride location breadcrumb
What you see here above, is the mere result of calling this template without the main compulsory parameter.