Template:Implode characters: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
m add secondary version
Keira (talk | contribs)
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>usage: <pre><nowiki>{{implode characters|ALIGNMENT|AFFILIATION|STATUS|LOCATION|}}</nowiki></pre>
usage: <pre><nowiki>{{implode characters|ALIGNMENT|AFFILIATION|STATUS|LOCATION}}</nowiki></pre>
 
toss in a hidelabels=1 if u want


leave ones you dont want blank.
leave ones you dont want blank.


"None" for affiliation may help
"None" for affiliation may help
</noinclude>
</noinclude><includeonly>
<includeonly>{{#ifeq: {{{1}}}| Active |{{#ask:
{{#cargo_query:
[[:+]]
tables=characters
{{#if: {{{1|}}} | [[Alignment::{{{1}}}]]  | }}
|fields=characters._pageName
{{#if: {{{2|}}} | [[Affiliation::{{{2}}}]] | }}
|where=characters.status = "{{{3}}}" and characters.alignment = "{{{1}}}" and characters.affiliation HOLDS {{#if: {{{2|}}} |"{{{2}}}" | "None" }}
{{#if: {{{3|}}} | [[Status::{{{3}}}]]    | }}
|order by=characters.leader DESC, characters.name ASC
{{#if: {{{4|}}} | [[Location::{{{4}}}]]    | }}
|format=ul
|format=ul}}|{{implode characters with location|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}</includeonly>
|default=
}}</includeonly>

Latest revision as of 18:26, 27 July 2024

usage:

{{implode characters|ALIGNMENT|AFFILIATION|STATUS|LOCATION|}}

toss in a hidelabels=1 if u want

leave ones you dont want blank.

"None" for affiliation may help