Template talk:Yearpage

From Greyhawk Wiki
Revision as of 11:24, 4 September 2025 by Abra Saghast (talk | contribs) (New Discussion re: toggle features)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Detecting references

Hey, Rexidos ... totally random thought ... in cases like this one, or on the "Third century CY, where it pulls from the timeline in particular ways ... Is there a Mediwiki method that the template can detect the text of it is pulling?

Like, I guess what I'm asking is whether we can make the template detect if there's <ref>s or {{csb}s or {{refn}}s in the text it's pulling?

I guess what I'm asking is would it be possible to use {{YearPage}} to detect {{csb}} and then make it look like citations are different by show or don't show certain code? Like in a way, toggle on or off a feature like "inline" or "short"?

Like, if a reference were detected, then display === Notes === that doesn't otherwise display? Or if a reference were detected, can it set something for the page, like make it substitute "inline=yes" to "inline=no" just for the specific page it appears on. Or just have it show or not show anything that would appear under ? Do you know if there's a "<no references />" or something like that?—--Abra Saghast (talk) 12:24, 4 September 2025 (EDT)