This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template:Sortnametest: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice allow single character |
imported>Hardvice try this... |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{single|}}} |
<includeonly>{{#if: {{{single|}}} |
||
| |
| |
||
{{#if: {{#dpl:|category=+{{{category1|}}}|category={{{category2}}}|ordermethod=sortkey|count=1|offset={{{item| |
{{#if: {{#dpl:|category=+{{{category1|}}}|category={{{category2}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,,,|include={{{{template|}}}}:{{{variable|}}},|secseparators=|distinct=strict}} | {{#sub: {{#dpl:|category=+{{{category1|}}}|category={{{category2|}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,,,|include={{{{template|}}}}:{{{variable|}}},|secseparators=|distinct=strict}} | 0 | 1 }} | {{#sub: {{#dpl:|category=+{{{category1|}}}|category={{{category2|}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,%TITLE%,,|distinct=strict}}| 0 | 1 }}}} |
||
| |
| |
||
{{#if: {{#dpl:|category=+{{{category1|}}}|category={{{category2}}}|ordermethod=sortkey|count=1|offset={{{item| |
{{#if: {{#dpl:|category=+{{{category1|}}}|category={{{category2}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,,,|include={{{{template|}}}}:{{{variable|}}},|secseparators=|distinct=strict}} | {{#dpl:|category=+{{{category1|}}}|category={{{category2|}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,,,|include={{{{template|}}}}:{{{variable|}}},|secseparators=|distinct=strict}} | {{#dpl:|category=+{{{category1|}}}|category={{{category2|}}}|ordermethod=sortkey|count=1|offset={{{item|%NR%}}}|format=,%TITLE%,,|distinct=strict}}}}}}</includeonly><noinclude> |
||
==Usage== |
==Usage== |
||
Returns an infobox sort variable if found, article title if not found. |
Returns an infobox sort variable if found, article title if not found. |
||
Latest revision as of 11:59, 2 December 2007
Usage
Returns an infobox sort variable if found, article title if not found.
{{sortnametest|category1=|category2=|item=|template=|variable=}}