Difference between revisions of "Template:PrintTopicAcceptedTheoriesDetails"
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
-->[[SubObjectCategory::Current Answer]]<!-- | -->[[SubObjectCategory::Current Answer]]<!-- | ||
-->[[Topic::{{{topic|}}}]]<!-- | -->[[Topic::{{{topic|}}}]]<!-- | ||
− | -->[[ | + | -->[[Completeness::Complete||Partial]]<!-- this excludes None |
-->|?Theory<!-- | -->|?Theory<!-- | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
Line 57: | Line 57: | ||
-->{{{intro|}}}<!-- | -->{{{intro|}}}<!-- | ||
− | --><!-- Get the list of all | + | --><!-- Get the list of all direct accepted theories first |
--><!-- | --><!-- | ||
− | -->{{#arraydefine: | + | -->{{#arraydefine: varDirectAnswers<!-- |
-->|{{#ask:<!-- | -->|{{#ask:<!-- | ||
-->[[SubObjectCategory::Current Answer]]<!-- | -->[[SubObjectCategory::Current Answer]]<!-- | ||
-->[[Topic::{{{topic|}}}]]<!-- | -->[[Topic::{{{topic|}}}]]<!-- | ||
− | -->[[ | + | -->[[Directness::Direct]]<!-- |
-->|?Theory<!-- | -->|?Theory<!-- | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
Line 76: | Line 76: | ||
--><!-- | --><!-- | ||
--><!-- remove duplicates | --><!-- remove duplicates | ||
− | -->{{#arrayunique: | + | -->{{#arrayunique: varDirectAnswers}}<!-- |
--><!-- | --><!-- | ||
− | --><!-- Print the | + | --><!-- Print the direct answers |
--><!-- | --><!-- | ||
− | -->{{#arrayprint: | + | -->{{#arrayprint: varDirectAnswers||varTheory<!-- |
-->|<!-- | -->|<!-- | ||
--><!-- | --><!-- | ||
Line 93: | Line 93: | ||
-->}}<!-- | -->}}<!-- | ||
--><!-- | --><!-- | ||
− | -->}}<!--arrayprint | + | -->}}<!--arrayprint varDirectAnswers |
Line 103: | Line 103: | ||
-->[[SubObjectCategory::Current Answer]]<!-- | -->[[SubObjectCategory::Current Answer]]<!-- | ||
-->[[Topic::{{{topic|}}}]]<!-- | -->[[Topic::{{{topic|}}}]]<!-- | ||
− | -->[[ | + | -->[[Directness::Superanswer||Subanswer]]<!-- |
-->|?Original Topic<!-- | -->|?Original Topic<!-- | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
-->|headers=hide<!-- | -->|headers=hide<!-- | ||
− | -->|sort= | + | -->|sort=Directness, Sorting Order<!-- this assures that that superanswers are displayed first |
− | -->|order= | + | -->|order=desc, asc<!-- |
-->|link=none<!-- | -->|link=none<!-- | ||
-->|limit=10000<!-- | -->|limit=10000<!-- | ||
Line 136: | Line 136: | ||
-->[[Topic::{{{topic|}}}]]<!-- | -->[[Topic::{{{topic|}}}]]<!-- | ||
-->[[Original Topic::varOriginalTopic]]<!-- | -->[[Original Topic::varOriginalTopic]]<!-- | ||
− | -->[[ | + | -->[[Directness::Superanswer||Subanswer]]<!-- |
-->|?Theory<!-- | -->|?Theory<!-- | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
-->|headers=hide<!-- | -->|headers=hide<!-- | ||
− | -->|sort=Sorting Order<!-- | + | -->|sort=Directness, Sorting Order<!-- superanswers will be printed first |
− | -->|order=asc<!-- | + | -->|order=desc, asc<!-- |
-->|link=none<!-- | -->|link=none<!-- | ||
-->|limit=10000<!-- | -->|limit=10000<!-- |
Revision as of 10:59, 22 June 2024
This template is used to print the details of accepted theories on the given topic. It displays the descriptions and other details of theories accepted on a given topic by sorting them according to their topic's sorting order.
The template first tries to locate the direct (complete) answers to the question and present their descriptions.
After than, it presents the inherited answers, and then the partial answers. These two categories are presented under their respetive subheadings.
The template is community-agnostic: it presents all the answers to the topic accepted by any community.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topic=
- the topic.|intro=
- initial text that precedes the output, if at least some results exist.|outro=
- text that is appended to the output, if at least some results exist.|default=
- if, for any reason, the query returns no results, this will be printed instead.