#Transcluding only certain text from a page

10 messages · Page 1 of 1 (latest)

stray forge
#

I would like to transclude only a portion of a page to the front page of my wiki, but would like for it to be done automatically without the need for <noinclude> tags. Basically, a page for Announcements that I can edit the very top of and only the first X lines would be transcluded without the need to use tags like <noinclude>, which would require me to remove the last line in thesection when adding a line at the beginning to keep the same number of lines being transcluded. Sorry if this is confusing.

Here is the page in question: https://emmytherobot.wiki/wiki/Emmy_The_Robot_Fandom_Wiki:Announcements

Emmy The Robot Fandom Wiki

This page lists all changes, outages, page creations, notable moments, and other important information relating to this wiki. The events listed in the Current category are also listed on the front page. Please list no more than six items in Current to keep the main page uncluttered.

#

Transcluding only certain text from a page

stray forge
#

To help clarify, currently I have a page with:

7
6
5</onlyinclude>
4
3
2
1```

that gets transcluded to my main page, showing only:

8
7
6
5```

I'd like to make it so that when I edit the page I don't have to add, say, a 9 to the top, as well as removing the 5 to the other side of the <onlyinclude> tag, I can just continue adding to the top and only the first X lines would get transcluded.

zenith pendant
#

Is not any easy solutions I am pretty sure. Your best bet would be looking into something with DPL3 (DynamicPageList3) extension

sturdy fulcrum
#

The Labeled Section Transclusion extension allows selective transclusion of marked-off sections of text, parsing wikitext as normal. Its functionality is similar to an enhanced version of the ‎<onlyinclude> tag with normal wiki transclusion, which selects sections for inclusion. It is enabled on all Wikimedia wikis.
While normal transclusion is ...

#

(P.S., I left an (unrelated) message on your user talk page.)

stray forge
# zenith pendant Is not any easy solutions I am pretty sure. Your best bet would be looking into ...

This almost works exactly how I wanted, thank you! Except the title of the page is listed as well and I haven't been able to find anything in the manual about suppressing that. Any ideas?

https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_volume#Defining_header_and_footer_for_the_result

Gamepedia Help Wiki

Per default, DynamicPageList3 will show the name of each article, including its namespace. The name will serve as a link to the article.
By setting the output control parameters of DPL you can

stray forge
zenith pendant
#

It is a long time since I actually created the DPL query, but you can do pretty much whatever the hell you want with it, if you use the userformat mode, but going that route for it, does make it very complex, since you then also HAVE to specify everything exactly as you want it, though is the route I ended up using for what I am using it for myself https://help.fandom.com/wiki/Extension:DPL3/Parameters:_Controlling_output_format#mode_'userformat'

Gamepedia Help Wiki

You can select one of several default formats or define your own format (mode=userformat); output can be grouped in columns or rows.

#

LOL that embed image for that particular page xD