ids = ['Q4818527','Q22096738','Q7996297','Q6541882',
       'Q5188973','Q5944484','Q15229111','Q617699',
       'Q8001022','Q4947991','Q5752020','Q14716653',
       'Q7132127','Q7548208','Q4735528']

marker = 'skiing'

i = 0
for qid in ids:
    i += 1
    print(f'|id{i}={qid}|type{i}=point|marker{i}={marker}|title{i}={{{{label|{qid}}}}}')
|id1=Q4818527|type1=point|marker1=skiing|title1={{label|Q4818527}}
|id2=Q22096738|type2=point|marker2=skiing|title2={{label|Q22096738}}
|id3=Q7996297|type3=point|marker3=skiing|title3={{label|Q7996297}}
|id4=Q6541882|type4=point|marker4=skiing|title4={{label|Q6541882}}
|id5=Q5188973|type5=point|marker5=skiing|title5={{label|Q5188973}}
|id6=Q5944484|type6=point|marker6=skiing|title6={{label|Q5944484}}
|id7=Q15229111|type7=point|marker7=skiing|title7={{label|Q15229111}}
|id8=Q617699|type8=point|marker8=skiing|title8={{label|Q617699}}
|id9=Q8001022|type9=point|marker9=skiing|title9={{label|Q8001022}}
|id10=Q4947991|type10=point|marker10=skiing|title10={{label|Q4947991}}
|id11=Q5752020|type11=point|marker11=skiing|title11={{label|Q5752020}}
|id12=Q14716653|type12=point|marker12=skiing|title12={{label|Q14716653}}
|id13=Q7132127|type13=point|marker13=skiing|title13={{label|Q7132127}}
|id14=Q7548208|type14=point|marker14=skiing|title14={{label|Q7548208}}
|id15=Q4735528|type15=point|marker15=skiing|title15={{label|Q4735528}}
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'Main Page')

print(page.title(as_link=True, force_interwiki=True, textlink=True))
[[wikipedia:en:Main Page]]